import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: resolve => require(['./views/index.vue'], resolve),
      children: [{
        path: '/',
        component: resolve => require(['@/views/index/home.vue'], resolve),
      },{
        path: '/works',
        component: resolve => require(['@/views/works/works.vue'], resolve),
      },{
        path: '/work-detail',
        component: resolve => require(['@/views/works/work-detail.vue'], resolve),
      },{
        path: '/about',
        component: resolve => require(['@/views/about.vue'], resolve),
      },]
    }
  ]
})
